<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class RoleRequest extends FormRequest
{

    public function rules(): array
    {
        return [
            'name'      => 'required|string|max:100',
            'code'      => 'required|string|max:100',
            'dataScope' => 'required|in:1,2,3,4',
            'status'    => 'required|in:0,1',
            'status'    => 'required|in:0,1',
            'sort'      => 'required|integer|min:0',
            'menuIds'   => 'nullable|array'
        ];
    }
}
